package GradeManager.StudentGradeSystem.dao;

import GradeManager.StudentGradeSystem.pojo.Teacher;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface TeacherDao extends BaseMapper<Teacher> {
    @Update("update teacher_view " +
            "set chinese=#{chinese},math=#{math},english=#{english},total_score=#{totalScore} " +
            "where school_year=#{schoolYear} and student_id=#{studentId}")
    void updateGrades(Teacher updatedTeacherRow);
}
